<template>
	<view class="ikz">
    <ikz-loading  :css-data="loading_css"></ikz-loading>
    <view class="ikz-success">
      <view class="ikz-success-box">
        <image class="ikz-success-img" src="/static/success.png"></image>
        <view class="ikz-success-title">
          支付成功
        </view>
        <view class="ikz-success-tips">
          请前往个人中心→我的订单查看
        </view>
      </view>
      <view class="ikz-success-btn" @click="myOrder">
        前往查看订单
      </view>
      <view class="ikz-success-index" @click="goIndex">
        返回首页
      </view>
    </view>
	</view>
</template>

<script>
  import ikzLoading from '@/pages/Component/Public/Loading/loading.vue';
  var app = getApp();
  import ikz from '@/pages/Common/tools.js';
  export default {
    components: {
      ikzLoading
    },
    data() {
      return {
        loading_css:{
          display:'flex',
        },
       }
    },
    created() {
      // var that = this;
      this.loading_css.display = 'none';
    },
    methods: {
      goIndex(){
        uni.switchTab({
            url: '/pages/Home/index'
        });
      },
      myOrder(){
        uni.redirectTo({
            url: '/pages/Component/Module/Campus/Program/Order/myorder/index'
        });
      }
    }
  };
</script>

<style >
  page{
    width: 100%;
    height: 100%;
    background:#F3F3F3;
  }
  .ikz-success-box{
    box-sizing: border-box;
    padding: 100rpx 0px;
    width: 95%;
    margin: 40rpx auto;
    border-radius: 15rpx;
    display:flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    background: #fff;
    
  }
  .ikz-success-img{
    width: 200rpx;
    height: 200rpx;
    
  }
  .ikz-success-title{
    width: 100%;
    text-align: center;
    margin-top: 50rpx;
  }
  .ikz-success-tips{
    width:100%;
    text-align: center;
    color: #888888;
    margin-top: 20rpx;
  }
  .ikz-success-btn{
    width: 95%;
    height: 80rpx;
    margin:0 auto;
    background: linear-gradient(to right, #FBAB7E, #F8C66D);
    color: #fff;
    border-radius: 50rpx;
    text-align: center;
    line-height: 80rpx;
  }
  .ikz-success-index{
    width: 95%;
    height: 80rpx;
    margin:0 auto;
    color: #888;
    text-align: center;
    line-height: 80rpx;
    margin-top: 30rpx;
    border-radius: 50rpx;
    border:1px solid #888888;
  }
</style>
